CMAKE_MINIMUM_REQUIRED(VERSION 2.0)

#
# Set the project name.
#

PROJECT (VTKJOLLY)

#
# Load CMake commands that you probably should not modify.
#

INCLUDE (${VTKJOLLY_SOURCE_DIR}/CMakeOptions.cmake)

#
# Here is where you can list the sub-directories holding your local
# classes. Sorting classes by 'package' type like VTK does (Common,
# Rendering, Filtering, Imaging, IO, etc.) is a good thing and prevents
# numerous dependencies problems.
#

SUBDIRS (
  Processing
  Wrapping
)

#
# You can put your include path(s) here
#

INCLUDE_DIRECTORIES (${VTKJOLLY_SOURCE_DIR}/Processing)

#
# Build examples too ?
#

OPTION(BUILD_EXAMPLES "Build examples." OFF)
IF (BUILD_EXAMPLES)
  SUBDIRS(Examples)
ENDIF (BUILD_EXAMPLES)

#
# Common configuration settings
#
# Do not worry about this one.
#

CONFIGURE_FILE(
  ${VTKJOLLY_SOURCE_DIR}/VTKJOLLYConfigure.h.in
  ${VTKJOLLY_BINARY_DIR}/VTKJOLLYConfigure.h
)

INCLUDE_DIRECTORIES(${VTKJOLLY_BINARY_DIR})

ENABLE_TESTING()
